import dash
import dash.html as html

app = dash.Dash(__name__)

app.layout = html.Div(
    children=[
        html.H1("hell Dash", style={"color": "blue", "fontSize": 40}),
        html.P("这是一个段落", className="my-class"),
    ],
    style={
        "color": "blue",
        "backgroundColor": "#f0f0f0",
        "padding": "10px",
        "borderRadius": "5px",
    },
)

""" style 其它属性
fontFamily: 'Arial, sans-serif',  # 设置全局字体
padding: 10px: 内边距为 10 像素
borderRadius: 5px: 边框圆角为 5 像素
maxWidth: 800px,  # 设置最大宽度
margin: '0 auto'  # 居中显示
textAlign: 'center'  # 文字居中
"""

if __name__ == "__main__":
    app.run(debug=True, port=8090)
